package com.wicket.okrpbff.web.contorller;

import cn.hutool.core.bean.BeanUtil;
import com.wicket.okrpbff.biz.service.EvaSystemService;
import com.wicket.okrpbff.biz.service.dto.req.*;
import com.wicket.okrpbff.biz.service.dto.res.*;
import com.wicket.okrpbff.common.ro.OkrResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.util.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.wicket.okrapp.integration.FwAppEvaSystemClient;
import com.wicket.okrapp.integration.dto.JudgeTargetIsReviseDataRespDto;
import com.wicket.okrapp.integration.dto.JudgeTargetIsReviseDataReqDto;
import com.wicket.okrpbff.common.exception.Assert;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@Api(value = "EvaSystem", tags = { "EvaSystem" })
@RestController
// @RequestMapping("/poms/evaSystem/")
public class EvaSystemController {

  @Autowired
  EvaSystemService evaSystemService;
/**
   * B3判断指标是否存在修订(管理)
   * gen by moon at 11/18/2022, 7:34:56 PM
   */
    @PostMapping("/oms/mgt/evaSystem/judgeTargetIsReviseData")
    @ApiOperation(value = "B3判断指标是否存在修订(管理)", response = OkrResult.class)
    public OkrResult<BffJudgeTargetIsReviseDataRespDto> judgeTargetIsReviseData(@RequestBody(required=false) @Validated BffJudgeTargetIsReviseDataReqDto reqDTO){
        return OkrResult.success(evaSystemService.judgeTargetIsReviseData(reqDTO));
    }
}
